#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface NSDate (CTTool)
+ (NSTimeInterval)timeIntervalWithStart:(NSDate *)begin end:(NSDate *)end;
+ (NSTimeInterval)timeIntervalWithStartInterval:(NSTimeInterval)startInterval endInterval:(NSTimeInterval)endInterval;
+ (NSString *)timestampWithDate:(NSDate *)date;
+ (NSDate *)dateWithTimestamp:(NSString *)timeStamp;
+ (NSDate *)dateWithString:(NSString *)string;
+ (NSDate *)dateWithString:(NSString *)string format:(NSString *)formatter;
+ (NSString *)stringWithDate:(NSDate *)date;
+ (NSString *)stringWithDate:(NSDate *)date format:(NSString *)format;
+ (NSDateFormatter *)getFormatter;
- (nullable NSString *)stringWithFormat:(NSString *)format;
- (nullable NSString *)stringWithFormat:(NSString *)format
                               timeZone:(nullable NSTimeZone *)timeZone
                                 locale:(nullable NSLocale *)locale;
+ (BOOL)juncCompareOneDate:(NSDate *)oneDate withAnotherDate:(NSDate *)anotherDate;
+ (BOOL)juncCompareOneDateStr:(NSString *)oneDateStr withAnotherDateStr:(NSString *)anotherDateStr;
+ (NSInteger)secondWithOneDateStr:(NSString *)oneDateStr anotherDateStr:(NSString *)anotherDateStr;
@end
NS_ASSUME_NONNULL_END
